home *** CD-ROM | disk | FTP | other *** search
- -- card: 6531 from stack: in.6
- -- bmap block id: 6784
- -- flags: 0000
- -- background id: 2598
- -- name: Card1
- ----- HyperTalk script -----
- on opencard
- -- hide card field 1
- set textArrows to true
- set blindtyping to false
- hide message
- hide card field "Anna PWD"
- hide card field "PWD"
- get short name of card button id 44
- put card field "Terminal Emulator" of card "config" into TE
- set name of card button id 44 to "Vaihda pääteohjelmaan " & TE
- end opencard
-
-
-
-
-
- -- part 13 (field)
- -- low flags: 00
- -- high flags: 0007
- -- rect: left=0 top=192 right=342 bottom=512
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 4
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Field 1
-
-
- -- part 22 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=0 top=13 right=26 bottom=108
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: UserMessage
-
-
- -- part 14 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=392 top=151 right=169 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: More
- ----- HyperTalk script -----
- on mouseUp
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- openascii
- show card field 1
- writeascii (numtochar(17) & return)
- put space into card field 1
- displayscreen "dis",CommPrompt
- closeascii
- end mouseUp
-
-
-
-
- -- part 16 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=292 top=116 right=134 bottom=332
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Who
- ----- HyperTalk script -----
- on mouseUp
- global CommPrompt
- set cursor to watch
- openascii
- put empty into card field 1
- writeascii (numtochar(17) & "who" & return)
- displayscreen "dis",CommPrompt
- closeascii
- end mouseUp
-
-
-
- -- part 25 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=0 top=0 right=12 bottom=62
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 4
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: LineCount
-
-
- -- part 28 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=140 top=140 right=186 bottom=231
- -- title width / last selected line: 0
- -- icon id / first selected line: 16003 / 16003
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: News system
- ----- HyperTalk script -----
- on mouseup
- get first word of card field "Node Name" of card "config"
- if it <> "tukki" then
- answer "News on vain tukki-koneessa."
- else
- visual effect iris open slow
- go card "News"
- end if
- end mouseup
-
-
-
- -- part 29 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=156 top=86 right=131 bottom=213
- -- title width / last selected line: 65535
- -- icon id / first selected line: -15903 / 49633
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: E Mail
- ----- HyperTalk script -----
- on mouseUp
- visual effect iris open slow
- go card "Mailing"
- end mouseUp
-
-
-
- -- part 31 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=25 top=133 right=185 bottom=116
- -- title width / last selected line: 0
- -- icon id / first selected line: 8538 / 8538
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Change Passwd
- ----- HyperTalk script -----
- on mouseup
- openascii
- get first word of card field "Node Type" of card "config"
- put it into NodeType
- ask "Anna vanha salasanasi."
- if NodeType = "vms" then
- writeascii "set pass" & return
- else
- writeascii "passwd" & return
- end if
-
- wait 1 sec
- writeascii it & return
- ask "Anna uusi salasanasi."
- put it into salasana
- ask "Anna uusi salasana uudelleen."
- if it = salasana then
- writeascii it & return
- wait 1 sec
- writeascii it & return
- else
- answer "Annoit uuden eritavalla. Tee uudestaan."
- writeascii return & return
- exit mouseup
- end if
- put space into card field 1
- displayscreen "dis"
- if nodetype is "vms" then
- get offset("old password validation error",card field 1)
- else
- get offset("Sorry",card field 1)
- end if
-
- if it > 0 then
- answer "Annoit vanhan salasanan väärin. Yritä uudestaan."
- end if
-
- closeascii
- end mouseup
-
-
-
- -- part 32 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=283 top=151 right=169 bottom=367
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Speak Text
- ----- HyperTalk script -----
- on mouseUp
- ReadField1
- end mouseUp
-
-
-
- -- part 36 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=456 top=83 right=130 bottom=503
- -- title width / last selected line: 65535
- -- icon id / first selected line: -15743 / 49793
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: PANIC
- ----- HyperTalk script -----
- on mouseup
- PANIC
- end mouseup
-
-
-
- -- part 37 (field)
- -- low flags: 80
- -- high flags: 2004
- -- rect: left=28 top=22 right=289 bottom=479
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 16384
- -- line height: 16
- -- part name: Anna PWD
-
-
- -- part 38 (field)
- -- low flags: 80
- -- high flags: 2004
- -- rect: left=160 top=145 right=169 bottom=298
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: PWD
-
-
- -- part 40 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=286 top=133 right=151 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Change [{| to Çüà
- ----- HyperTalk script -----
- on mouseUp
- set cursor to watch
- set cursor to watch
- replace "{","ä"
- replace "}","å"
- replace "|","├╢"
- replace "\","Ö"
- replace "[","Ä"
- replace "]","Å"
- end mouseUp
-
-
-
- -- part 41 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=301 top=97 right=117 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Save file to disc
- ----- HyperTalk script -----
- on mouseUp
- global NewsState
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- if NodeType <> "unix" then
- put "Ei toimi VMS-koneilla."
- exit mouseup
- end if
-
- openascii
- ask "Anna tiedoston nimi, joka haetaan mikrolle."
- put it into BINHEXNIMI
- put it into BINHEXNIMIM
- put false into OK
- repeat until OK
- get offset(":",BINHEXNIMIM)
- if it > 0 then
- put "-" into char it of BINHEXNIMIM
- put "Nimestä poistettu :-merkki. Nimi on nyt " & BINHEXNIMIM
- else
- put true into OK
- end if
- end repeat
- open file BINHEXNIMIM
-
- put empty into card field 1
- writeascii "more " & BINHEXNIMI & return
- repeat 10000 times
- displayscreen "dis","--more--("
- get number of lines of card field 1
- put it into n
- repeat with i = 1 to n
- get line i of card field 1
- put it
- if offset("--MORE--(",it) > 0 then exit repeat
- write it & return to file BINHEXNIMIM
- end repeat
- get number of characters of card field 1
- get char it-1 to it of card field 1
- if it = "% " then exit repeat
- writeascii " "
- put empty into card field 1
- end repeat
- close file BINHEXNIMIM
- displayscreen "dis"
- closeascii
- put "Tiedosto on talletettu HyperCard -kansioon nimelle" && BINHEXNIMIM
- end mouseUp
-
-
-
- -- part 42 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=31 top=81 right=126 bottom=106
- -- title width / last selected line: 0
- -- icon id / first selected line: 1006 / 1006
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Close Connection
- ----- HyperTalk script -----
- on mouseUp
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- set cursor to watch
- openascii
- show card field 1
- put false into OK
- writeascii "exit" & return
- writeascii "lo" & return
- displayscreen "dis","verkko","logout"
- if offset("disconnected",card field 1) <> 0 then
- put true into OK
- end if
- if offset("logged out at",card field 1) <> 0 then
- put true into OK
- end if
- if offset("invalid CS/",card field 1) <> 0 then
- put true into OK
- end if
- if OK then
- writeascii "dis" & return
- wait 100
- writeascii "dis" & return
- wait 100
- writeascii "dis" & return
- wait 100
- writeascii numtochar(4) & numtochar(4) & numtochar(4)
- --show button id 29
- --show button id 28
- --show button id 31
-
- else
- show card field 1
- put "Yhteys koneeseen ei sulkeutunut normaalisti." into card field "UserMessage" of card "card0"
- end if
- displayscreen "dis"
- put "Yhteys koneeseen " & NodeName & " on nyt suljettu. " into card field "UserMessage" of card "card0"
- put "Voit nyt poistua tästä pinosta." after card field "UserMEssage" of card "card0"
- closeascii
- go card "card0"
- end mouseUp
-
-
-
-
- -- part 43 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=246 top=78 right=98 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Get file to text field
- ----- HyperTalk script -----
- on mouseUp
- global NewsState
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- if NodeType <> "unix" then
- put "Ei toimi VMS-koneilla."
- exit mouseup
- end if
- put empty
- openascii
- ask "Anna tiedoston nimi, joka haetaan mikrolle."
- put it into BINHEXNIMI
-
- put empty into card field 1
- writeascii "cat " & BINHEXNIMI & return
- repeat 1000 times
- displayscreen "dis"
- --get number of lines of card field 1
- --put it into n
- --repeat with i = 1 to n
- -- get line i of card field 1
- -- put it
- -- if offset("--MORE--(",it) > 0 then
- -- put empty into line n of card field 1
- -- exit repeat
- -- end if
- --end repeat
- get number of characters of card field 1
- get char it-1 to it of card field 1
- if it = "% " then exit repeat
- --writeascii " "
- end repeat
- --displayscreen "dis"
- closeascii
- put "Tiedosto on tekstikentässä."
- end mouseUp
-
-
-
- -- part 44 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=271 top=169 right=188 bottom=510
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Open terminal emulator
- ----- HyperTalk script -----
- on mouseUp
- put first word of card field "TTY" of card "Config" into TTY
- openascii
- writeascii "set term=" & TTY & return
- writeascii "stty rows 24" & return
- writeascii numtochar(17)
- closeascii
- put card field "Terminal Emulator" of card "config" into TerminalEmulator
- open TerminalEmulator
- domenu "quit hypercard"
- end mouseUp
-
-
-
- -- part 45 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=131 top=21 right=72 bottom=244
- -- title width / last selected line: 0
- -- icon id / first selected line: 27056 / 27056
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Change parameters
- ----- HyperTalk script -----
- on mouseup
- go card "Config"
- end mouseup
-
-
-
- -- part 46 (button)
- -- low flags: 00
- -- high flags: A004
- -- rect: left=340 top=116 right=134 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Any Command
- ----- HyperTalk script -----
- on mouseUp
- global CommStorage
- global CommSpeed,CommPrompt, NodeName, NodeType, Username
- openascii
- ask "Komento"
- writeascii numtochar(17) & it & return
- put space into card field 1
- displayscreen "dis",CommPrompt
- closeascii
- end mouseUp
-
-
-
- -- part contents for card part 25
- ----- text -----
- Lines 4
-
- -- part contents for card part 37
- ----- text -----
-
-
-
- Kirjoita salasanasi.
-
-
- (Se kirjoittuu •-merkkeinä alla olevaan kenttään)
-
- -- part contents for card part 38
- ----- text -----
- ΓÇóΓÇóΓÇóΓÇóΓÇóΓÇóΓÇó
-
- -- part contents for card part 13
- ----- text -----
- stty rows 24
-
- 5:55pm@tukki:~% set term=vt200
-
-